package com.atguigu.gulimail.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.math.BigDecimal;
import java.util.List;

@FeignClient("gulimail-product")
public interface ProductFeignService {

    @RequestMapping("/product/skuinfo/info/{skuId}")
     R getSkuInfo(@PathVariable("skuId") Long skuId);


    @GetMapping("/product/skusaleattrvalue/listString/{skuId}")
     List<String> skuSaleAttr(@PathVariable("skuId") Long skuId);


    @GetMapping("/{skuId}/price")
     BigDecimal price(@PathVariable("skuId")Long skuId);
}
